<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Exil:  Fichier source de src/Ville.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Exil
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Variables&#160;globale</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">src/Ville.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_ville_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef VILLE_H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define VILLE_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;<a class="code" href="_entrepot_8h.html" title="Définit la structure de l&#39;entrepôt.">Entrepot.h</a>&quot;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;<a class="code" href="_arbre_tech_8h.html" title="Définit l&#39;arbre des technologies.">ArbreTech.h</a>&quot;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;<a class="code" href="_population_8h.html" title="Définit la structure Population.">Population.h</a>&quot;</span>
<a name="l00014"></a>00014 
<a name="l00020"></a><a class="code" href="struct_ville.html">00020</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00021"></a>00021 {
<a name="l00022"></a><a class="code" href="struct_ville.html#a01ace2bacc6be62d9eb112b5bd83cfa7">00022</a>   <span class="keywordtype">char</span>* <a class="code" href="struct_ville.html#a01ace2bacc6be62d9eb112b5bd83cfa7">nomClan</a>; 
<a name="l00023"></a><a class="code" href="struct_ville.html#a2d27423c8823dd967d8cea15fba9afd6">00023</a>   <a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* <a class="code" href="struct_ville.html#a2d27423c8823dd967d8cea15fba9afd6">population</a>; 
<a name="l00024"></a><a class="code" href="struct_ville.html#a6fd4946f566986b2b780ca5a7d62bf95">00024</a>   <a class="code" href="struct_entrepot.html" title="Informations définissant l&#39;entrepôt.">Entrepot</a>* <a class="code" href="struct_ville.html#a6fd4946f566986b2b780ca5a7d62bf95">reserves</a>; 
<a name="l00025"></a><a class="code" href="struct_ville.html#ab9501c215cddc13abb1e52af4cf0d45a">00025</a>   <a class="code" href="struct_arbre_tech.html" title="Informations définissant un Arbre des Technologies.">ArbreTech</a>* <a class="code" href="struct_ville.html#ab9501c215cddc13abb1e52af4cf0d45a">arbreTech</a>; 
<a name="l00026"></a>00026 }<a class="code" href="struct_ville.html">Ville</a>;
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 
<a name="l00035"></a>00035 <span class="keywordtype">void</span> <a class="code" href="_ville_8c.html#ae0e98f68572f1364d5abad77b0648976" title="initialise les valeurs d&#39;une ville">initVille</a>(<a class="code" href="struct_ville.html">Ville</a>* ville);
<a name="l00036"></a>00036 
<a name="l00043"></a>00043 <span class="keywordtype">void</span> <a class="code" href="_ville_8c.html#ad8e6c98dcf421dbd6468fe5ba8f94c15" title="Créé une structure VilleProduction.">creerVille</a>(<a class="code" href="struct_ville.html">Ville</a>** ville);
<a name="l00044"></a>00044 
<a name="l00051"></a>00051 <span class="keywordtype">void</span> <a class="code" href="_ville_8c.html#ab100dbbe3f632e2d02bf8876a831ea04">detruireVille</a>(<a class="code" href="struct_ville.html">Ville</a>* ville);
<a name="l00052"></a>00052 
<a name="l00059"></a>00059 <span class="keywordtype">void</span> <a class="code" href="_ville_8c.html#ade2acf00c9e57b9393c7cdbbfb9ec28b">ajouterMembreVille</a>(<a class="code" href="struct_ville.html">Ville</a>* ville);
<a name="l00060"></a>00060 
<a name="l00067"></a>00067 <span class="keywordtype">void</span> <a class="code" href="_ville_8c.html#afb8f5cea79fa2d025703be1f3daf1e66">retirerMembreVille</a>(<a class="code" href="struct_ville.html">Ville</a>* ville, <a class="code" href="struct_pers_str.html">Personnage</a> *personnage);
<a name="l00068"></a>00068 
<a name="l00075"></a>00075 <span class="keywordtype">char</span>* <a class="code" href="_ville_8c.html#a126d860039d3e0eec9f204ab982b487e" title="renvois la chaine de caracères du nom du clan">getNomClan</a>(<a class="code" href="struct_ville.html">Ville</a>* ville);
<a name="l00076"></a>00076 
<a name="l00083"></a>00083 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="_ville_8c.html#a17231327c30fd281dee7915414501c15">getEffectif</a>(<a class="code" href="struct_ville.html">Ville</a>* ville);
<a name="l00084"></a>00084 
<a name="l00091"></a>00091 <a class="code" href="struct_entrepot.html" title="Informations définissant l&#39;entrepôt.">Entrepot</a>* <a class="code" href="_ville_8c.html#acb6f26faa4e5a00a7e49d33065e6e07f" title="Renvois un pointeur sur l&#39;entrepot de la ville.">getReserves</a>(<a class="code" href="struct_ville.html">Ville</a>* ville);
<a name="l00092"></a>00092 
<a name="l00100"></a>00100 <span class="keywordtype">void</span> <a class="code" href="_ville_8c.html#a31cf0893bce1c5ccb269add9dd7faea7" title="attibue un nom de clan à la ville passée en argument">setNomClan</a>(<a class="code" href="struct_ville.html">Ville</a>* ville, <span class="keywordtype">char</span>* nouvNom);
<a name="l00101"></a>00101 
<a name="l00109"></a>00109 <span class="keywordtype">void</span> <a class="code" href="_ville_8c.html#a1db29cab993bf6cf3f41947a45517a56" title="attribue un comportement rentable pour la ville au personnage donné en argument">calcPrioriteComportements</a>(<a class="code" href="struct_ville.html">Ville</a>* ville, <a class="code" href="struct_pers_str.html">Personnage</a>* personnage);
<a name="l00110"></a>00110 
<a name="l00117"></a>00117 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="_ville_8c.html#ae64f04309fa7f7d797643ad3cf770c12" title="renvois le nombre de parsonnages quittant la ville en fonction des paramètres démographiques">calcDepartPop</a>(<a class="code" href="struct_ville.html">Ville</a>* ville);
<a name="l00118"></a>00118 
<a name="l00125"></a>00125 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="_ville_8c.html#a589cabac878f47dc54c8a734a287773b" title="calcule le nombre de personnage arrivant dans la ville en fonction des paramètres démographiques...">calcArriveesPop</a>(<a class="code" href="struct_ville.html">Ville</a>* ville);
<a name="l00126"></a>00126 
<a name="l00133"></a>00133 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="_ville_8c.html#acec0cfc996253ff0d35d2ad9546e916e" title="renvois la nourriture consommée par pas de temps par les personnages">calcConsomationNourr</a>(<a class="code" href="struct_ville.html">Ville</a>* ville);
<a name="l00134"></a>00134 
<a name="l00141"></a>00141 <span class="keywordtype">int</span> <a class="code" href="_ville_8c.html#a9f0e6d828c87b12a5172c6b7ce8e6bfa" title="renvois l&#39;évolution générale du morale au sein de la ville">calcEvolutionMoral</a>(<a class="code" href="struct_ville.html">Ville</a>* ville);
<a name="l00142"></a>00142 
<a name="l00152"></a>00152 <span class="keywordtype">void</span> <a class="code" href="_ville_8c.html#abd0d6475a707dc7331c69adc95b7d139" title="Développe une technologie dont on aura passé l&#39;ID.">devTechArbreTechVille</a>(<a class="code" href="struct_ville.html">Ville</a>* ville, <a class="code" href="struct_arbre_tech.html" title="Informations définissant un Arbre des Technologies.">ArbreTech</a> *pAT, <span class="keywordtype">int</span> IDTech);
<a name="l00153"></a>00153 
<a name="l00160"></a>00160 <span class="keywordtype">void</span> <a class="code" href="_ville_8c.html#a1417f4e94e857d4dc854ec1c1ca15c93" title="fait évoluer la ville d&#39;un pas de temps en modifiant ses paramètres en conséquence">incrementePasDeTemps</a>(<a class="code" href="struct_ville.html">Ville</a>* ville);
<a name="l00161"></a>00161 
<a name="l00162"></a>00162 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Structures de données</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Définitions de type</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Généré le Mardi Juin 4 2013 00:35:14 pour Exil par &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
